package com.crowdfunding.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoyu
 * @since 2021-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("退款记录实体类")
public class BackRecordCrowdFunding extends Model<BackRecordCrowdFunding> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "b_cf_id", type = IdType.AUTO)
    @JsonIgnore
    private Integer bCfId;

    @ApiModelProperty("应退款的项目id")
    private String cfId;

    @ApiModelProperty("应退款的用户名")
    private String username;

    @ApiModelProperty("退款金额")
    private Double bCfrAmount;

    private Date cfrTime;


    @Override
    protected Serializable pkVal() {
        return this.bCfId;
    }

}
